package com.wkbb.sports.dto;

import java.io.Serializable;
import java.util.List;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ScoreRuleDto implements Serializable  {
	
	@Data
	public static class ScoreScope{
		private Byte gender;
		private int maxCount;
		private int maxPlusCount;
	}
	
	private static final long serialVersionUID = -1318772991766869343L;

    @ApiModelProperty(value = "项目类型(1-跳绳,2-跑步)")
    private Byte projectKind;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "评分标准类型(1-国家标准,2-地方标准,3-自定义标准)")
    private Byte markType;

    @ApiModelProperty(value = "模式")
    private Byte modelType;
    
    @ApiModelProperty(value = "年级ID")
    private Long gradeId;

    @ApiModelProperty(value ="规则排序(1 升序 2降序)")
    private Byte ruleType;
    
    private List<ScoreRuleItemDto> items;
    
    private List<ScoreRulePlusDto> pluses;

    //最高分数
    private double score;
    //最高加分
    private double plusScore;

    private List<ScoreScope> scoreScopes;
    
    public String findKey() {
    	return markType + "-" + projectKind + "-" +modelType+"-"+ gradeId;
    }
}
